<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AmazonCommon.Amazon.ECS.Item>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Customer Reviews for
        <%= Model.ItemAttributes.Title %>
    </h2>
    Average Customer Review Rating:
    <% if (Model.CustomerReviews != null && Model.CustomerReviews.AverageRatingSpecified)
       {
           Html.RenderPartial("StarRating", new AmazonCommon.DecimalWrapper(Model.CustomerReviews.AverageRating));
       }
    %>
    <p>
        Total Reviews:
        <%= Html.Encode(Model.CustomerReviews.TotalReviews)%>
    </p>
    <p>
        Total Review Pages:
        <%= Html.Encode(Model.CustomerReviews.TotalReviewPages)%>
    </p>
    </fieldset>
    <% if (Model != null && Model.CustomerReviews.Review.Length > 0)
       {
           Html.RenderPartial("CustomerReviewList", Model);
       } %>
</asp:Content>
